﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="MassMailing.WPF.MainWindow"
        Title="Mass Mailer" Height="350" Width="525" BorderThickness="4" WindowStyle="ThreeDBorderWindow" BorderBrush="Black">
    <DockPanel>
    	<Menu DockPanel.Dock="Top">
    		<MenuItem x:Name="miFileMenu" Header="_File" ToolTip="File Menu">
    			<MenuItem x:Name="miSettings" Header="_Settings" Click="miSettings_Click"/>
    			<MenuItem Header="_Exit"/>
    		</MenuItem>
    	</Menu>
    	<UniformGrid DockPanel.Dock="Bottom" Margin="0" Rows="1" Columns="2">
    		<Button x:Name="btnSend" Content="Send" Margin="0" Click="btnSend_Click"/>
    		<Button x:Name="btnClear"  Content="Clear" Click="btnClear_Click"/>
    	</UniformGrid>
    	<Border BorderBrush="Black" BorderThickness="0,1" DockPanel.Dock="Bottom"/>
    	<StackPanel DockPanel.Dock="Top">
    		<StackPanel Height="29" Orientation="Horizontal">
    			<Label Content="To (Excel File):&#xa;"/>
    			<TextBox x:Name="txtToFile" TextWrapping="NoWrap" Height="21.96" Margin="5,3.52" Width="322" Text="File Path Displayed Here" IsReadOnly="True" IsReadOnlyCaretVisible="True" />
    			<Button Content="Browse" Width="75" Click="btnToExcelFile_Click"/>
    		</StackPanel>
    		<Canvas Height="29" HorizontalAlignment="Left" Width="98" d:IsLocked="True">
    			<Button x:Name="btnAddAttachment" Content="Add Attachment" Canvas.Top="4" Canvas.Left="2" Click="btnAddAttachment_Click"/>
    		</Canvas>
            <StackPanel x:Name="spnlAttachments" />
            <StackPanel Height="29" Orientation="Horizontal">
                <Label Content="From:"/>
                <TextBox x:Name="txtFrom" TextWrapping="NoWrap" Height="21.96" Margin="5,3.52" Width="445" Text="" />
            </StackPanel>
            <DockPanel>
    			<Label Content="Subject:" Width="52" Height="25.96" VerticalAlignment="Top"/>
    			<TextBox x:Name="txtSubject" TextWrapping="Wrap" Text="" Height="21.96" Margin="5,4.52,0,0" Width="{Binding Width, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type StackPanel}}}" VerticalAlignment="Top"/>
    		</DockPanel>
    		<Label Content="Body:" d:IsLocked="True"/>
    	</StackPanel>
    	<TextBox x:Name="txtBody" TextWrapping="Wrap" Text="" SpellCheck.IsEnabled="True" AcceptsReturn="True" AcceptsTab="True" d:LayoutOverrides="Width, GridBox" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" DockPanel.Dock="Top" Margin="0"/>
    </DockPanel>
</Window>
